/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package datatypes;


import javax.swing.*;
import java.awt.*;

/**
 *
 * @author shohdi-user
 */
public class DataTypes extends JFrame {

    public DataTypes ()
    {
        super ("Data Types");
        setSize (600,400);
        setVisible (true);
        setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
        
        
    }
    
    public void paint (Graphics g)
    {
        super.paint(g);
        g.setFont(new Font("Tahoma",Font.PLAIN,12));
        g.drawString("Byte : " + Byte.MIN_VALUE + " to " + Byte.MAX_VALUE,50,50);
        g.drawString("Short : " + Short.MIN_VALUE + " to " + Short.MAX_VALUE,50,70);
        g.drawString("Int : " + Integer.MIN_VALUE + " to " + Integer.MAX_VALUE,50,90);
        g.drawString("long : " + Long.MIN_VALUE + " to " + Long.MAX_VALUE,50,110);
        g.drawString("float : " + Float.MIN_VALUE + " to " + Float.MAX_VALUE,50,130);
        g.drawString("double : " + Double.MIN_VALUE + " to " + Double.MAX_VALUE,50,150);
        
    }
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        new DataTypes ();
    }
}
